/**
 * 首页页面
 */
"use client";
import React, { useEffect } from "react";
import { SharedContext } from "./layout";
import { useContext } from "react";

const HomePage = () => {
  const sharedData = useContext(SharedContext);
  useEffect(() => {
     console.log(sharedData); 
  
    return () => {
     
    }
  }, [sharedData])
  
  return (
    <div>
      <h1>{sharedData?.user || '首页'}</h1>
      <p>主题：{sharedData?.theme || 'dark'}</p>
    </div>
  );
};

export default HomePage;